<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" rel="stylesheet" href="/res/front/css/sytle/businessPage-css/financing_apply.css" />
<#include "/front/head.html"/>
<title>我要融资 - ${title}</title>
<script type="text/javascript">
	$(function() {
		$("#jvForm").validate();
		
		$(".bord").focus(function(){
			$(this).css({"border":"1px solid #0CF","box-shadow":"0 0 5px #0CF"})
		});
		
		$(".bord").blur(function(){
			$(this).css({"border":"1px solid #CCC","box-shadow":"none"});
		});
	});
	function check(){
		if($('#fddw').val()=='d'&&$("#fd").val()>30){
			alert("需要按天融资的必须在30日内!!")
			return false;
		}
		if(!($('#xy').attr('checked'))){
			alert("请仔细阅读并同意<<融资协议>>");
			return false;
		}
		if(isNaN($('#financeamount').val())||$('#financeamount').val()%50!=0||$('#financeamount').val()==''){
			$('#financeamountMSG').html('请输入50的倍数!')
			return false;
		}else{
			$('#financeamountMSG').html('')
		}
		if(isNaN($('#financepa').val())||$('#financepa').val()==''||$('#financepa').val()<10||$('#financepa').val()>24){
			$('#financepaMSG').html('年利率范围在范围10%-24%之间!')
			return false;
		}else{
			$('#financepaMSG').html('')
		}
		return true;
	}
	function test(){
	}
	function myfunction1(){
		$("#sbStatus").val(0);
		$("#jvForm").submit();
	}
	function myfunction2(){
		$("#sbStatus").val(12);
		$("#jvForm").submit();
	}
	
</script>
</head>
<!---------- 我要融资页面financeInfo.html ---------->
<body>
	<!-- 头部 header.html -->
	<#include "/front/common/header.html"/>
    <div class="fin_apply_main">
    	<div class="fin_apply_centre">
        	<div class="fin_apply_location_div">
                <span>
                    <b><a href="" style="color:#666;">我要融资</a></b>&nbsp;>
                    <b>填写融资申请</b>
                </span>
            </div>
        </div>
        <div class="fin_apply_table">
        	<div class="fin_title_header">
            	<b>融资申请信息填写</b>
                <a href="/v_jsq2.jspx" target="_blank" style="font-size:12px; color:#090;">利息计算器</a>
          	</div>
            <form action="${base}/member/o_tfinanceinfoSubmit.jspx" method="post" id="jvForm" onsubmit="return check();">
            <input type="hidden" name="fiid" value="${tfinanceinfo.fiid!}"/>
            	<div class="fin_apply_form">
                	<ul>
                    	<li class="fin_form_li_div_1">
                        	<ul>
                            	<li class="fin_Li_1">
                                	<span class="tet_1">融资标题</span>
                                    <input type="text" name="financekey" class="required fin_inp_1 bord" maxlength="50" value="${tfinanceinfo.financekey!}"/>
                                </li>
                                <li class="fin_Li_2">
                                	<span class="tet_2">融资用途</span>
                                   	<input type="text" name="financeuse" class="required fin_inp_1 bord" maxlength="50" value="${tfinanceinfo.financeuse!}"/>
                                </li>
                                <li style="clear:both;"></li>
                            </ul>
                        </li>
                        <li class="fin_form_li_div_1">
                            <ul>
                                <li class="fin_Li_3">
                                    <span class="tet_1">融资金额</span>
                                    <input type="text" name="financeamount" class="fin_inp_1 bord" id="financeamount" maxlength="6"  value="${tfinanceinfo.financeamount!}"/>元
                                    <p style="color:red; font-size:16px; position:relative; left:118px;" id="financeamountMSG"></p>
                                </li>
                                <li class="fin_Li_4">
                                    <span class="tet_2">融资期限</span>
                                    <#if (tfinanceinfo.financeallotedtime??)>
                                    <#if (tfinanceinfo.financeallotedtime>=30)>
                                    <input type="text" name="financeallotedtime" size="5" class="number fin_inp_1 bord" id="fd" value="${tfinanceinfo.financeallotedtime/30}"/>
                                    <select name="date" class="fin_inp_2 bord" id="fddw">
                                            <option value="m" selected="selected">月</option>
                                            <option value="d">日</option>
                                        </select>
                                    <#else>
                                    <input type="text" name="financeallotedtime" size="5" class="number fin_inp_1 bord" id="fd" value="${tfinanceinfo.financeallotedtime}"/>
                                     <select name="date" class="fin_inp_2 bord" id="fddw">
                                            <option value="m" >月</option>
                                            <option value="d" selected="selected">日</option>
                                        </select>
                                    </#if>
                                    <#else>
                                    <input type="text" name="financeallotedtime" size="5" class="number fin_inp_1 bord" id="fd" />
                                     <select name="date" class="fin_inp_2 bord" id="fddw">
                                            <option value="m">月</option>
                                            <option value="d">日</option>
                                        </select>
                                    </#if>
                                       
                                        <br/>
                                        <span style="color:red; font-size:14px">融资期限在一个月以下的请选择日</span>
                                </li>
                                <li style="clear:both;"></li>
                            </ul>
                        </li>
                        <li class="fin_form_li_div_2">
                        	<ul>
                            	<li class="fin_Li_5">
                                	<span class="tet_3">年利率</span>
                                	<#if tfinanceinfo.financepa??>
                                    <input type="text" name="financepa" class="fin_inp_1 bord" id="financepa" value="${tfinanceinfo.financepa*100}"/>%
                                    <#else>
                                    <input type="text" name="financepa" class="fin_inp_1 bord" id="financepa" />%
                                    </#if>
                                    <span style="width:450px; font-size:14px; margin-left:100px;">利率精确到小数点后一位，范围10%-24%之间融资最低利率由您的融资期限确定，一般来说融资利率越高，筹款速度越快。</span>
                                    <p style="color:red; font-size:12px; position:relative; left:140px; top:10px;" id="financepaMSG"></p>
                                </li>
                                <li style="clear:both;"></li>
                            </ul>
                        </li>
                        <li class="fin_form_li_div_3">
                        	<ul>
                                <li class="fin_Li_6">
                                	<span class="tet_4">还款周期</span>
                                    <select name="repaymentperiod" class="required fin_inp_3" disabled="disabled">
                                        <#list repaymentperiodMap?keys as idKey>
                                            <option value="${idKey}"  > ${repaymentperiodMap[idKey]}</option>
                                        </#list>
									</select>
                                </li>
                            </ul>
                        </li>
                        <li class="fin_form_li_div_3">
                        	<ul>
                                <li class="fin_Li_6">
                                	<span class="tet_4">还款方式</span>
                                    <select name="repaymentmod" class="required fin_inp_3 bord">
                                    <#if tfinanceinfo.repaymentmod??>
										<option value="1" <#if tfinanceinfo.repaymentmod==1>selected="selected"</#if>>等额本息</option>
										<option value="3"  <#if tfinanceinfo.repaymentmod==3>selected="selected"</#if>>每月付息，到期还本</option>
									<#else>
									<option value="1">等额本息</option>
											<option value="3">每月付息，到期还本</option>
									</#if>
									</select>
                                </li>
                            </ul>
                        </li>
                        <li class="fin_form_li_div_4">
                        	<ul>
                            	<li class="fin_Li_7">
                               		<span class="tet_5">融资服务费</span>
                                   	<span style="font-size:14px; text-indent:20px;">融资成功后按照融资金额的一定比例一次性从融资中扣除，实际费用比例参见下表，信用等级以审核最终评定为准。</span>
                                    <table width="600" border="0" cellpadding="0" cellspacing="0" class="fin_table" style="margin-top:10px;">
                       	  				<tr align="center">
                                        	<td width="115" height="40">信用等级</td>
                                            <td width="85">AA</td>
                                            <td width="85">A</td>
                                            <td width="85">B</td>
                                            <td width="85">C</td>
                                            <td width="85">D</td>
                                            <td width="85">E</td>
                                            <td width="85">HR</td>
                                     	 </tr>
                                        <tr align="center">
                                        	<td height="40">费率</td>
                                            <td>0%</td>
                                            <td>1%</td>
                                            <td>1.5%</td>
                                            <td>2%</td>
                                            <td>2.5%</td>
                                            <td>3%</td>
                                            <td>5%</td>
                                        </tr>
                                    </table>
                                </li>
                            </ul>
                        </li>
                       	<li class="fin_form_li_div_5">
                        	<ul>
                            	<li class="fin_Li_8">
                                	<span class="tet_6">融资描述</span>
                                </li>
                                <li><textarea cols="71" rows="6" name="financedescription" class="required bord" style="border:1px solid #ccc;">${tfinanceinfo.financedescription!}</textarea></li>
                                <li style="clear:both;"></li>
                            </ul>
                        </li>
                        <li class="fin_form_li_div_6">
                            <input type="checkbox" name="" value="" id="xy" checked="checked"/>
                            <span style="font-family:'宋体'; font-size:14px;">我已阅读并同意&nbsp;
                            	<b><a href="/融资协议.html" style="color:#ff9a00;" target="block">《融资协议》</a></b>
                            </span>
                        </li>
                        <li class="fin_form_li_div_7">
                            <input id="sub1" type="button" class="fin_sava" onclick="myfunction1()" value="提交审核" />
        					<input id="sub2" type="button" class="fin_sava" onclick="myfunction2()" value="暂存草稿" />
        					<input type="hidden" name="status" id="sbStatus"/>
                        </li>
                    </ul>
                </div>
            </form>
        </div>
    </div>    
     <!-- 底部 footer.html -->
     <#include "/front/common/footer.html"/>
</body>
</html>
